import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 04 - 18
 * Time: 13:47
 */
//给定一个大小为n的数组，找到其中的多数元素，多数元素是指在数组中出现次数大于n/2的元素
public class test5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] arr1 = new int[9];
        for (int i = 0; i < arr1.length; i++) {
            arr1[i] = scanner.nextInt();
        }
        int occur = 1;
        for (int i = 0; i < arr1.length; i++) {
            for (int j = i + 1; j < arr1.length; j++) {
                if(arr1[i] == arr1[j]) {
                    occur++;
                }
            }
            if(occur > arr1.length / 2.0) {
                System.out.println(arr1[i]);
            }
            occur = 1;
        }
    }
}
